import request from '@/utils/request'

//用于接口地址映射
export default {
    //讲师列表
    getTeacherListPage(current, limit, teacherQuery) {
        return request({
            url: `/eduservice/teacher/pageQuery/${current}/${limit}`,
            method: 'post',
            data: teacherQuery
        })
    },
    //删除讲师
    removeById(id) {
        return request({
            url: `/eduservice/teacher/${id}`,
            method: 'delete',
            data: id
        })
    },
    //添加讲师
    saveTeacher(eduTeacher) {
        return request({
            url: `/eduservice/teacher/addTeacher`,
            method: 'post',
            data: eduTeacher
        })
    },
    //添加讲师
    getTeacherById(id) {
        return request({
            url: `/eduservice/teacher/getTeacher/${id}`,
            method: 'get'
        })
    },
    //修改讲师
    updateTeacher(eduTeacher) {
        return request({
            url: `/eduservice/teacher/updateTeacher`,
            method: 'post',
            data:eduTeacher

        })
    }
}


//------------------------
